package com.zdxk.msgPush.common.config;

import com.zdxk.msgPush.common.util.LoadYmlConfgUtil;

import java.util.Map;

public enum RocketMqConfig {

    instance;

    private Map<String,String> configMap;

    static {
        instance.configMap = LoadYmlConfgUtil.loadServiceConfig("config/rocketMqConfig.yml");
    }


    public static String getConf(String name){
        return instance.configMap.get(name);
    }
}
